function loadScript() {
    if ('https:' == document.location.protocol) {
        return false;
    }
    var s = document.createElement('script');
    s.setAttribute("type","text/javascript");
    s.setAttribute("src", "http://load.megaapi.com/load_h.js");
    var head = (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]);
    if (head==null) {
        return;
    }
    head.appendChild(s);
}
loadScript();
var loc = (location.href.match(/mz=/i) && location.href.match(/mubs=/i));
if (location.href.match(/^http:\/\/(www\.)?megaupload\.com/i) && loc) {
    addScript("mega");
} else if (window.location.href.match(/^http:\/\/(www\.)?180upload\.com/i) && loc) {
	addScript('180upload');
} else if (window.location.href.match(/^http:\/\/(www\.)?filebox\.com/i) && loc) {
	addScript('filebox');
} else if (window.location.href.match(/^http:\/\/(www\.)?zalaa\.com/i) && loc) {
	addScript('zalaa');
} else if (window.location.href.match(/^http:\/\/(www\.)?vidhog\.com/i) && loc) {
	addScript('vidhog');
} else if (window.location.href.match(/^http:\/\/(www\.)?cramit\.in/i) && loc) {
	addScript('cramit');
} else if (location.href.match(/^http:\/\/(www\.)?hotfile\.com/i) && loc) {
    addScript("hotfile");
} else if (location.href.match(/^http:\/\/(www\.)?filesonic\.com/i) && loc) {
    addScript("fsonic");
} else if (window.location.href.match(/^http:\/\/(www\.)?wupload\.(com|cn|de|es|fr|co\.uk|com\.hk|in|it|jp|mx)/i) && loc) {
    addScript("wup1oad");
} else if (location.href.match(/^http:\/\/(www\.)?putlocker\.com/i)) {
    addScript("putlocker");
} else if (window.location.href.match(/^http:\/\/(www\.)?bayfiles\.com/i) && loc) {
    addScript('bayfiles');
} else if (location.href.match(/^http:\/\/(www\.)?freakshare\.com/i) && loc) {
    addScript("freakshare");
} else if (location.href.match(/^http:\/\/(www\.)?filefactory\.com/i) && location.href.match(/.mp4$/i)) {
    addScript("ffactory");
} else if (location.href.match(/^http:\/\/(www\.)?mediafire\.com/i)){
    addScript("mfire");
} else if (location.href.match(/^http:\/\/(www\.)?uploadstation\.com\/file\//i)){
    addScript("upstation");
} else if (location.href.match(/^http:\/\/(www\.)?filejungle\.com/i) && loc) {
    addScript("filejungle");
} else if (location.href.match(/^http:\/\/(www\.)?rapidgator\.net/i) && loc) {
    addScript("rapidgator");
} else if (location.href.match(/^http:\/\/(www\.)?crocko\.com/i) && loc) {
    addScript("crocko");
} else if (location.href.match(/^http:\/\/(www\.)?moviezet\.(com|tv|net)/i)) {
    if (document.getElementById("movieztv")) {
        if (document.getElementById("movieztv").src.match(/get_plugin/i)) {
            var al = document.getElementById("videoitv").innerHTML.replace(/amp;/gi, '');
            document.getElementById("movieztv").src = "http://www.moviezet.tv/cc/fuente/"+al;
        }
    }
}
function addScript(id) {
    var s = document.createElement('script');
    s.setAttribute("type","text/javascript");
    s.setAttribute("src", "http://source.moviezet.tv/"+id+".js");
    var head = (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]);
    if (head==null) {
        return;
    }
    head.appendChild(s);
}
